package com.wealth.scsj.b_app.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wealth.scsj.b_app.R;
import com.wealth.scsj.b_app.bean.OrderSonBean;

import java.util.List;

/**
 * 订单列表子类
 */

public class OrderSonAdapter extends BaseQuickAdapter<OrderSonBean,BaseViewHolder> {

    public OrderSonAdapter(List data) {
        super(R.layout.item_son_order_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderSonBean item) {
        helper.setText(R.id.name_tv,item.getName());
        helper.setText(R.id.num_tv,item.getNum());
        helper.setText(R.id.price_tv,item.getPrice());
    }
}
